import request from '@/utils/request'

// 查询伤残民兵民工信息列表
export function listDisabled_militiaman(query) {
  return request({
    url: '/archive_info/disabled_militiaman/list',
    method: 'get',
    params: query
  })
}

// 查询伤残民兵民工信息详细
export function getDisabled_militiaman(id) {
  return request({
    url: '/archive_info/disabled_militiaman/' + id,
    method: 'get'
  })
}

// 新增伤残民兵民工信息
export function addDisabled_militiaman(data) {
  return request({
    url: '/archive_info/disabled_militiaman',
    method: 'post',
    data: data
  })
}

// 修改伤残民兵民工信息
export function updateDisabled_militiaman(data) {
  return request({
    url: '/archive_info/disabled_militiaman',
    method: 'put',
    data: data
  })
}

// 删除伤残民兵民工信息
export function delDisabled_militiaman(id) {
  return request({
    url: '/archive_info/disabled_militiaman/' + id,
    method: 'delete'
  })
}

// 导出伤残民兵民工信息
export function exportDisabled_militiaman(query) {
  return request({
    url: '/archive_info/disabled_militiaman/export',
    method: 'get',
    params: query
  })
}